import {get,post} from '../../utils/request' 

//获取房屋列表
export const getList=(params:any):Promise<any> =>{

    return get("houses/list",params);
}

//删除房屋批量
export const deleteAll=(ids:number[])=>{

    return post("houses/deleteall",{ids});
}
//单个删除房屋
export const del=(id:number)=> get("houses/delete",{id});

//新增房屋
export const add=(data:any)=> post("houses/add",data);